module V1
  class Stores < Grape::API
    # before do
    #   authenticate_user!
    # end
    resource :stores, desc: '门店相关' do
      add_desc '嗲吗面'
      params do
        optional :id, type: Integer, desc: 'id'
      end
      get do
        # binding.pry
        store = Store.first
        present store, with: ::Entities::Store
      end
    end
  end
end
